﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPages/MainTemplate.Master" AutoEventWireup="true" CodeBehind="UserProfilePage.aspx.cs" Inherits="AlexandriaPressWebsite.MasterPages.UserPages.UserProfilePage" %>
<asp:Content ID="Content1" ContentPlaceHolderID="mainDoc" runat="server">   
<h1>My Account</h1>
<br />
    <asp:DetailsView ID="myProfileDetailsView1" runat="server" AutoGenerateRows="False" CssClass="grid" Width = "100%">
            <Fields>
            <asp:TemplateField ShowHeader = "false">
                <ItemTemplate>
                  <asp:Button ID="editAccountButton" runat="server" 
        onclick="editAccountButton_Click" Text="Edit My Account" 
        CssClass="genericButton" />  
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField ShowHeader = "false">
            <ItemTemplate>
                <asp:Button ID="changePasswordButton" runat="server" Text="Change Password" 
        onclick="changePasswordButton_Click" CssClass="genericButton" />
            </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField ShowHeader="false" >
                  <ItemTemplate>
                      <asp:Image AlternateText = "Profile Picture" ID="Image1" runat="server" ImageUrl='<%# Eval("ProfilePicture") %>' CssClass="bigImage" />
                  </ItemTemplate>    
            </asp:TemplateField>
            
           <asp:TemplateField HeaderText = "First Name:">
                <ItemTemplate>
                    <asp:Label ID="FirstName" runat="server" Text='<%# Eval("FirstName") %>'></asp:Label>
                          </ItemTemplate>                   
            </asp:TemplateField>   
             <asp:TemplateField HeaderText = "Last Name:">
                  <ItemTemplate>  
                    <asp:Label ID="LastName" runat="server" Text='<%# Eval("LastName") %>'></asp:Label>
                          </ItemTemplate>                   
            </asp:TemplateField> 
            
             <asp:TemplateField HeaderText = "Gender:">
                  <ItemTemplate>  
                    <asp:Label ID="Gender" runat="server" Text='<%# Eval("Gender") %>'></asp:Label>
                          </ItemTemplate>                   
            </asp:TemplateField>     
             <asp:TemplateField HeaderText = "Email:">
                  <ItemTemplate>  
                    <asp:Label ID="Email" runat="server" Text='<%# Eval("Email") %>'></asp:Label>
                          </ItemTemplate>                   
            </asp:TemplateField>   
             <asp:TemplateField HeaderText = "Birthday:">
                  <ItemTemplate>  
                    <asp:Label ID="Birthday" runat="server" Text='<%# Eval("Birthday") %>'></asp:Label>
                          </ItemTemplate>                   
            </asp:TemplateField>  
             <asp:TemplateField HeaderText = "DateJoined:">
                  <ItemTemplate>   
                    <asp:Label ID="DateJoined" runat="server" Text='<%# Eval("DateJoined") %>'></asp:Label>
                          </ItemTemplate>                   
            </asp:TemplateField>  
             <asp:TemplateField HeaderText = "Delivery Address:">
                  <ItemTemplate>   
                    <asp:Label ID="DeliveryAdd" runat="server" Text='<%# Eval("DeliveryAdd") %>'></asp:Label>
                          </ItemTemplate>                   
            </asp:TemplateField>   
            </Fields>
        </asp:DetailsView>   
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="formDoc" runat="server">
    </asp:Content>
